general formula for water in horizontal tank